<template>
  <div class="login">
   <a-button @click="login" type="primary">点击登录</a-button>
  </div>
</template>

<script setup lang="ts">
import router from '@/router';
// 这里可以添加组件逻辑
function login() {
  console.log('login')
router.push({
  name: 'layout'
})
}
</script>

<style scoped>
.login {
  text-align: center;
  margin: 20px;
}
</style>